package com.cbh.amadeus.server.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author ChenBiHui
 * @date 2025/4/27
 */
@Data
@ConfigurationProperties("spring.amadeus-message.config.publisher")
public class PublisherConfig {

    /**
     * 监听端口
     */
    private Integer port = 9022;

    /**
     * 空闲读检测间隔
     * 默认 30秒
     */
    private Integer readerIdleTimeSeconds = 30;

    /**
     * 空闲写检测间隔
     * 默认 20秒
     */
    private Integer writerIdleTimeSeconds = 20;

    /**
     * 是否开启空闲读检测
     */
    private Boolean readerIdle = true;

    /**
     * 是否开启空闲写检测
     */
    private Boolean writerIdle = true;
}
